package com.shop;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@EnableFeignClients
//表示通过aop框架暴露该代理对象，AopContext能够访问
//开启spring注解aop配置的支持-->可以通过AOPContext获取到当前代理
@EnableAspectJAutoProxy(exposeProxy = true)
@EnableTransactionManagement//开启事务代理。。。
public class AdminApiApplication {

    public static void main(String[] args) {
        SpringApplication.run(AdminApiApplication.class, args);
    }

}
